import React from 'react';
import Svg, { Path } from 'react-native-svg';
import { IconProps } from './types';
import { ICONS } from './icons';
import { colors } from '../../styles';
const CameraIcon: React.FC<IconProps> = ({
  name,
  size = 24,
  color = colors.black,
}) => (
  <Svg width={size} height={size} viewBox="0 0 1024 1024" fill={color}>
    {ICONS[name] &&
      ICONS[name].map((d, index) => <Path key={name + index} d={d}></Path>)}
  </Svg>
);
export default CameraIcon;
